﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace Pibby.Core.Tests
{
	[TestClass]
	public class TrackedExceptionTests
	{
		[TestMethod]
		public void TrackedException_NoArgs_HasId()
		{
			TrackedException ex = new TrackedException();

			Assert.IsNotNull(ex.Id);
		}

		[TestMethod]
		public void TrackedException_MessageArgs_HasId()
		{
			TrackedException ex = new TrackedException("Something went wrong");

			Assert.IsNotNull(ex.Id);
		}

		[TestMethod]
		public void TrackedException_InnerException_HasId()
		{
			TrackedException ex = new TrackedException("Something else went wrong", new Exception("Inner Exception text"));

			Assert.IsNotNull(ex.Id);
		}

	}
}
